/*
 * @Author: xiaosihan
 * @Date: 2022-02-24 22:49:42
 * @Last Modified by: 肖思汗
 * @Last Modified time: 2025-05-30 17:54:09
 */
import { EventDispatcher } from "../myThree/build/three.module";
class ThreeUtils extends EventDispatcher {
    constructor() {
        super();
    }
    _timeTemp = Date.now();
    _accumulate = 0; // 事件分发次数
    loop = setInterval(() => {
        this._accumulate += 1;
        const timeTemp = (this._timeTemp = Date.now());
        this.dispatchEvent({
            type: "requestAnimationFrame",
            timeTemp,
            accumulate: this._accumulate,
        });
    }, 35);

}
const threeUtils = new ThreeUtils();
export default threeUtils;
